package com.qiangqiang.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 晚归表
 * Created by q on 2018/2/1.
 */
@Entity
@Data
/**
 * 调用存储过程
 */
@NamedStoredProcedureQueries({@NamedStoredProcedureQuery(name = "insert_late", procedureName = "s_dormitory.insert_late",
        parameters = {@StoredProcedureParameter(mode = ParameterMode.IN, name = "scoreId", type = String.class),
                @StoredProcedureParameter(mode = ParameterMode.IN, name = "sId", type = String.class)})})
public class Late {
    /**
     * 晚归表id
     */
    @Id
    private int lId;
    /**
     * 加减分表的id
     */
    private String scoreId;
    /**
     * 晚归学生学号
     */
    private String sId;
    /**
     * 时间
     */
    private Date time;

}
